$(document).ready(function () {
    teamsService.allTeams(findTeams);
});


function findTeams(teams){
    var option = '<option value="">' + '---------请选择---------' + '</option>';

    for (var i = 0; i < teams.length; i++) {
        option = option + '<option value="' + teams[i].teamName + '">'
            + teams[i].teamName + "</option>";
    }
    $('#teamName').html(option);
}